﻿using AppSocketModel;
using System.Collections.Generic;

namespace AppSocketService.Location
{
    public interface ILocationPersonService
    {
        /// <summary>
        /// 初始化REDIS用 获取全部位置列表
        /// </summary>
        /// <returns></returns>
        List<LocationDto> InitRedisGetListAll();

        /// <summary>
        /// 添加一个设备位置
        /// </summary>
        /// <param name="locationDto"></param>
        /// <returns></returns>
        LocationDto AddNew(LocationDto locationDto);

        /// <summary>
        /// 修改VehicleNo的IMEI绑定
        /// </summary>
        /// <param name="vehicleNo"></param>
        /// <param name="Imei"></param>
        /// <returns></returns>

        LocationDto UpdateByImei(string vehicleNo, string Imei);
        /// <summary>
        /// 删除一个设备位置
        /// </summary>
        /// <param name="imei"></param>
        /// <returns></returns>
        void Delete(string imei);


        /// <summary>
        /// 获取缓存IMEI定位信息
        /// </summary>
        /// <param name="imei"></param>
        /// <param name="gpsMapType"></param>
        /// <returns></returns>
        LocationDto GetLocation(string imei,GpsMapType gpsMapType );
    }
}